package com.t16;

/**
 * Created by xuyiwei on 2018/8/11.
 */
class Ap{
    public String name;
    public Ap(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
public class ArrayCopyTest {
    public static void main(String[] args) {
        Ap[] aps = new Ap[1];
        Ap[] aps1 = new Ap[1];
        aps[0] = new Ap("a");
        System.arraycopy(aps,0,aps1,0,1);
        aps1[0].setName("ad");
        System.out.println(aps[0].getName());

    }
}
